#ifndef REMINDERBOX_H
#define REMINDERBOX_H

#include "FrameGlobal.h"
#include <QUrl>
#include <QTimer>
#include <QWidget>
#include <QDesktopWidget>
#include <QPropertyAnimation>

class QSound;
class FrameHelper;
namespace Ui {class ReminderBox;};

class FRAME_EXPORT ReminderBox : public QWidget
{
	Q_OBJECT

public:
	ReminderBox(QWidget *parent = 0);
	~ReminderBox();

public:
	void showAnimation();
	void setRemainTime(int msec);
	void setDurationTime(int msec);
	void initRemindItem(const QVector<QStringList> & listRemind);

protected:
	void initData();
	
private slots:
	void closeAnimation();
	void clearAll();
	void on_btnIgnore_clicked();
	void on_btnMore_clicked();

signals:
	void boxClose();
	void showRemindList();

private:
	Ui::ReminderBox *ui;

	int iRemainTime;
	int iDurationTime;

	QString strHtml;
	QString strItem;
	QTimer * remainTimer;
	QDesktopWidget desktop;
	QVector<QStringList> listContent;

	QSound * pSound;
	FrameHelper * pFrameHelper;
	QPropertyAnimation * animation;
};

#endif // REMINDERBOX_H
